import request from '@/utils/request'
const prefix = '/gift/api/goods'

/**
 * 商品详情
 * @returns
 */
const info = (id) => {
	return request({
		url: prefix + '/info/' + id,
	})
}
/**
 * 商品列表
 */	
const list = (params) => {
	return request({
		url: prefix + '/list',
		method: 'get',
		params,
	})
}

export default {
	info,
	list
}